<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      >
    <h:head>
        <title>Login-Fehler - Mein Wiki</title>
        <h:outputStylesheet library="css" name="stylesheet.css"/>
    </h:head>

    <h:body>
        
        <div id="wrapper">             
           <div id="suche">
                <h:form>
                    <h:inputText id="name" value="#{articleBean.searchText}" required="true" requiredMessage="Keine Eingabe im Suchfeld" styleClass="inputSearch" maxlength="100" autocomplete="on" />
                    <h:commandButton id="cmd" value="Suchen" action="#{articleBean.search()}" styleClass="button" />
                </h:form>
            </div>
            <div id="login">

            </div>

            <div id="header">
                <h:form>
                    <h:commandLink action="#{articleBean.goIndex()}">
                        <h:graphicImage  styleClass="image" library="images" name="LOGO-WIKI.jpg" alt="MeinWiki"/>
                    </h:commandLink>
                </h:form> 
            </div>
            <div id="menue">
               <h:form>
               <div id="links">
                   <h:commandButton action="#{articleBean.random()}" value="Zufälliger Artikel" styleClass="links">

                   </h:commandButton>
                </div>
                <div id="links">
                    <h:commandButton action="#{articleBean.latestArticle()}" value="Neuster Artikel" styleClass="links" >

                    </h:commandButton>
                    
                </div>
                    <h:column rendered="#{user.boss}">
                    <div id="links">
                    <h:commandButton value="Artikel Erstellen" action="#{articleBean.create()}" styleClass="links" />
                    </div>
                        </h:column>
                </h:form>
            </div>
            
            <div id="content">
                <p>Benutzername oder Passwort stimmen nicht überein</p>
                
                <h:form>
                    <h:commandButton value="Zurück" action="#{articleBean.goLogin()}" styleClass="button"/>
                </h:form>
            </div>
            <div id="footer">
                <h:form>
                    <div id="footerlinks">
                        <h:commandLink action="#{articleBean.goImpressum()}">
                            <h:outputText value="Impressum"/>
                        </h:commandLink>
                    </div>
                    <div id="footerlinks">
                        <h:commandLink action="#{articleBean.goKontakt()}">
                            <h:outputText value="Kontakt"/>
                        </h:commandLink>
                    </div>
                </h:form>
            </div>
                
        </div>
        
    </h:body>
</html>
